#pragma once

#include "Core/ZString.h"

struct GameSettings
{
	ZString gameName;
	int mainWindowWidth;
	int mainWindowHeight;
	int mainWindowPosX;
	int mainWindowPosY;
	bool mainWindowfullScreen;
};

class GameSettingsManager
{
public:
	bool SetDefault();
	bool Load(const char* const i_filename);
	bool Save(const char* const i_filename) const;
	const GameSettings& GetGameSettings() const;
	void SetGameSettings(const GameSettings& i_gs);

private:
	GameSettings m_gs;
};

inline const GameSettings& GameSettingsManager::GetGameSettings() const 
{
	return m_gs;
}

inline void GameSettingsManager::SetGameSettings(const GameSettings& i_gs)
{
	m_gs = i_gs;
}
